package com.echo.blog.business.sys.model;

import lombok.Data;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotNull;

/**
 * @version: V1.0
 * @author: chentailai
 * @className: ResigerUserVo
 * @packageName: com.echo.blog.business.sys.model
 * @description: 注册用户参数模板
 * @data: 2020/4/11 22:53
 **/
@Data
@Validated
public class RegisterUserVo {

    @NotNull(message = "用户名不能为空")
    private String username;

    @NotNull(message = "昵称不能为空")
    private String name;

    @NotNull(message = "密码不能为空")
    private String password;

    private String salt;

    @NotNull(message = "签名不能为空")
    private String signature;

    @NotNull(message = "电话不能为空")
    private String phone;

    @NotNull(message = "地址不能为空")
    private String address;

    @NotNull(message = "性别不能为空")
    private String sex;

    @NotNull(message = "年龄不能为空")
    private Integer age;

    @NotNull(message = "头像不能为空,测试下是否生效")
    private String avatar;
}
